﻿using MgSoft.K3Cloud.WebApi.Common.Dto.Property;
using MgSoft.K3Cloud.WebApi.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.K3Cloud.WebApi.Common.Dto.Bd
{
    /// <summary>
    /// 科目查询Dto
    /// </summary>
    public class Bd_AccountGetOutputDto
    {
        public int Id { get; set; }
        public int msterID { get; set; }
        public string DocumentStatus { get; set; }
        public string ForbidStatus { get; set; }
        public List<MultiLanguageTextProperty> MultiLanguageText { get; set; }
        public List<KeyValueProperty> Name { get; set; }
        public string Number { get; set; }
        public List<KeyValueProperty> Description { get; set; }
        public int CreateOrgId_Id { get; set; }
        public OrganizationFieldProperty CreateOrgId { get; set; }
        public int UseOrgId_Id { get; set; }
        public OrganizationFieldProperty UseOrgId { get; set; }
        public int CreatorId_Id { get; set; }
        //public Creatorid CreatorId { get; set; }
        public int ModifierId_Id { get; set; }
        //public Modifierid ModifierId { get; set; }
        public DateTime CreateDate { get; set; }
        public DateTime FModifyDate { get; set; }
        public string HelperCode { get; set; }
        public int ItemDetail_Id { get; set; }
        //public Itemdetail ItemDetail { get; set; }
        public bool IsCashflow { get; set; }
        public bool IsCash { get; set; }
        public int GroupID_Id { get; set; }
        //public Groupid GroupID { get; set; }
        public string DC { get; set; }
        public bool IsBank { get; set; }
        public int AuditorID_Id { get; set; }
        //public Auditorid AuditorID { get; set; }
        public int ForbidderID_Id { get; set; }
        public object ForbidderID { get; set; }
        public DateTime AuditDate { get; set; }
        public object ForbidDate { get; set; }
        public bool IsSysPreset { get; set; }
        public int ParentID_Id { get; set; }
        public object ParentID { get; set; }
        public int ACCTTBLID_Id { get; set; }
        //public ACCTTBLID ACCTTBLID { get; set; }
        public int FLEVEL { get; set; }
        public bool FISDETAIL { get; set; }
        public bool IsAllocate { get; set; }
        //public Fullname[] FullName { get; set; }
        public int OCFItemID_Id { get; set; }
        public object OCFItemID { get; set; }
        public int OCFIndirectItemId_Id { get; set; }
        public object OCFIndirectItemId { get; set; }
        public bool AllCurrency { get; set; }
        public int CFItemID_Id { get; set; }
        public object CFItemID { get; set; }
        public int CFIndirectItemId_Id { get; set; }
        public object CFIndirectItemId { get; set; }
        public string CurrencyList { get; set; }
        public string CURRENCYS { get; set; }
        public bool IsQty { get; set; }
        public int UnitGroupId_Id { get; set; }
        public object UnitGroupId { get; set; }
        public int UnitId_Id { get; set; }
        public object UnitId { get; set; }
        public int ControlOrgId_Id { get; set; }
        public object ControlOrgId { get; set; }
        public bool ISSHOWJOURNAL { get; set; }
        public string AMOUNTDC { get; set; }
        public bool ISCONTACT { get; set; }
        public object[] AccountCy { get; set; }
        /// <summary>
        /// 核算维度分录
        /// </summary>
        public List<BD_ACCOUNTFLEXENTRY> BD_ACCOUNTFLEXENTRY { get; set; }
        public object[] BD_ACCOUNTDISTRIBUTE { get; set; }
    }

    public class BD_ACCOUNTFLEXENTRY
    {
        public int Id { get; set; }
        public int Seq { get; set; }
        /// <summary>
        /// 核算维度Id
        /// </summary>
        public int FlEXITEMPROPERTYID_Id { get; set; }
        /// <summary>
        /// 核算维度
        /// </summary>
        public FlexItemProperty FlEXITEMPROPERTYID { get; set; }
        public bool AcctItemIsValid { get; set; }
        public string InputType { get; set; }
        public string DataFieldName { get; set; }
    }
}
